using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Enyo.Winforms.Test
{
	public partial class Form1 : Form
	{
		Data data = new Data("root", 5, new Data("test1", 1, new Data("test1.1", 11), new Data("test1.2", 12)), new Data("test2", 2));

		public Data Data
		{
			get { return data; }
			set { data = value; }
		}

		public Form1()
		{
			InitializeComponent();
		}

		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad(e);

			this.renderingControl.Value = data;

			this.propertyGrid.SelectedObject = this.renderingControl.Decorator;
		}
	}
}